﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.OracleClient;

namespace API_Service.DBHelper
{
    public class MsOracleCreator
    {
        public MsOracleCreator() { }

        private static IDbConnection dbConnection = null;

        public static IDbConnection SingletonConnection()
        {
            if (dbConnection == null)
            {
                dbConnection = new OracleConnection();
            }
            return dbConnection;
        }
        public static IDbConnection NewConnection()
        {
            return new OracleConnection(); ;
        }
    }
}